import request from '@/utils/request'

export function fetchRoleFunctionList(data) {
  return request({
    url: '/cloud-system/getRoleFunctionList',
    method: 'post',
    data
  })
}

export function fetchRoleFunctionOne(data) {
  return request({
    url: '/cloud-system/getOneRoleFunctionDetail',
    method: 'post',
    data
  })
}

export function createRoleFunction(data) {
  return request({
    url: '/cloud-system/createOneRoleFunction',
    method: 'post',
    data
  })
}

export function updateRoleFunction(data) {
  return request({
    url: '/cloud-system/updateOneRoleFunction',
    method: 'post',
    data
  })
}

export function deleteRoleFunction(data) {
  return request({
    url: '/cloud-system/deleteOneRoleFunction',
    method: 'post',
    data
  })
}

export function batchDeleteRoleFunction(data) {
  return request({
    url: '/cloud-system/batchDeleteRoleFunction',
    method: 'post',
    data
  })
}

export function lockRoleFunction(data) {
  return request({
    url: '/cloud-system/lockOneRoleFunction',
    method: 'post',
    data
  })
}

export function unlockRoleFunction(data) {
  return request({
    url: '/cloud-system/unlockOneRoleFunction',
    method: 'post',
    data
  })
}
